package com.example.firstjavamqtt.model.device;

import com.example.firstjavamqtt.Constants.DeviceTypeConstants;
import com.example.firstjavamqtt.model.base.Device;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "温湿度检测模块")
@Data
public class TemperatureHumidityMonitor extends Device {

    @ApiModelProperty(value = "温度")
    private double temperature;
    @ApiModelProperty(value = "湿度")
    private double humidity;

    {
        super.setDeviceType(DeviceTypeConstants.TEMP_HUMIDITY);
    }
}
